package com.mac.pojo;

import java.sql.Date;

/**
 * 创建研究成果表 ResearchResults 实体类
 * 包含实验室的研究成果信息
 */
public class ResearchResults {

    // 成果唯一标识，自增主键
    private Integer resultId;

    // 成果标题，不能为空
    private String title;

    // 成果描述
    private String description;

    // 成果类型，不能为空
    private String type;

    // 发表日期
    private Date  publicationDate;

    // 作者ID列表（JSON格式或字符串格式，用于存储多个作者）
    private String authorIds;

    public ResearchResults() {
    }

    public ResearchResults(Integer resultId, String title, String description, String type, Date publicationDate, String authorIds) {
        this.resultId = resultId;
        this.title = title;
        this.description = description;
        this.type = type;
        this.publicationDate = publicationDate;
        this.authorIds = authorIds;
    }

    public Integer getResultId() {
        return resultId;
    }

    public void setResultId(Integer resultId) {
        this.resultId = resultId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Date getPublicationDate() {
        return publicationDate;
    }

    public void setPublicationDate(Date publicationDate) {
        this.publicationDate = publicationDate;
    }

    public String getAuthorIds() {
        return authorIds;
    }

    public void setAuthorIds(String authorIds) {
        this.authorIds = authorIds;
    }

    @Override
    public String toString() {
        return "ResearchResults{" +
                "resultId=" + resultId +
                ", title='" + title + '\'' +
                ", description='" + description + '\'' +
                ", type='" + type + '\'' +
                ", publicationDate='" + publicationDate + '\'' +
                ", authorIds='" + authorIds + '\'' +
                '}';
    }
}
